package br.com.eduquiz.session;

import br.com.eduquiz.entity.*;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.framework.EntityQuery;
import java.util.Arrays;

@Name("reportBugList")
public class ReportBugList extends EntityQuery<ReportBug> {
	
	private static final long serialVersionUID = 689191836614149067L;

	private static final String EJBQL = "select reportBug from ReportBug reportBug";

	private static final String[] RESTRICTIONS = { "lower(reportBug.descricao) like lower(concat(#{reportBugList.reportBug.descricao},'%'))", };

	private ReportBug reportBug = new ReportBug();

	public ReportBugList() {
		setEjbql(EJBQL);
		setRestrictionExpressionStrings(Arrays.asList(RESTRICTIONS));
		setMaxResults(25);
	}

	public ReportBug getReportBug() {
		return reportBug;
	}
}
